<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title><?php echo ($_page_title); ?></title>
		<meta name="keywords" content="<?php echo ($_page_keywords); ?>" />
	<meta name="description" content="<?php echo ($_page_description); ?>" />
		<link rel="stylesheet" type="text/css" href="/Public/Home/css/head.css"/>
		<link rel="stylesheet" type="text/css" href="/Public/Home/css/index.css"/>
		<link rel="stylesheet" type="text/css" href="/Public/Home/css/footer.css"/>
		<script src="/Public/Home/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
		<script>
// 判断登录状态 
$.ajax({
	type : "GET",
	url : "<?php echo U('Member/ajaxChkLogin'); ?>",
	dataType : "json",
	success : function(data)
	{
		if(data.login == 1)
			var li = '您好，'+data.username+' [<a href="<?php echo U('Member/logout'); ?>">退出</a>]';
		else
			var li = '您好，欢迎来到快乐购！[<a href="<?php echo U('Member/login'); ?>">登录</a>] [<a href="<?php echo U('Member/regist'); ?>">免费注册</a>]'
		$("#logInfo").html(li);
	}
});
</script>
		
	</head>
	<body>
		<!--顶部公用-->
		<div class="header">
		<!--顶部导航-->
			<div class="header_top">
				<div class="w1200">
					<div class="h_t_l">
						<div class="login_l">
						    <div id="logInfo"></div>
						</div>
					</div>
					<div class="h_t_r">
						<ul>
							<li>
								<a href="<?php echo U('My/order');?>">订单查询</a>
								<span class="line"></span>
							</li>
							<li>
								<a href="<?php echo U('My/userindex');?>">我的快乐购</a>
								<span class="line"></span>
							</li>
							<li>
								<i class="tel_icon"></i>
								<a href="">400-705-1111</a>
								<span class="line"></span>
							</li>
							<li>
								<a href="">下载快乐购app</a>
								<div class="down_load">
                                    <div class="down_border">
                                        <b class="icon_top"></b>
                                        <img style="" src="/Public/Home/image/down_load_20160411.png">
                                        <p>快乐生活 快乐购</p>
                                    </div>
                                </div>
								<span class="line"></span>
							</li>
							<li class="cus_c_box">
								<a href="">客服中心</a>
								<div class="cus_center">
                                    <a href="">帮助中心</a>
                                    <a href="">会员反馈</a>
                                </div>
							</li>
						</ul>
					</div>
				</div>
			</div>
		   
 <!--搜索-->
		    <div class="full_sc">
	    	    <div class="w1200 header_conter">
	    		    <div class="h_c_logo">
	    			    <a href="index.html">
	    				    <img src="/Public/Home/image/logo.jpg"/>
	    			    </a>
	    		    </div>
	    		    <div class="h_c_bz">
	    			    <img src="/Public/Home/image/top_center.jpg" style="width: 467px;29px"/>
	    		    </div>
	    		    <div class="h_c_search">
	    			    <div class="search_input">
	    			    	<form action="" method="post">
	    			    		<input type="text" style="color: rgb(102, 102, 102);" id="key" name="key" class="text_search" placeholder="limu 请输入您要的商品"  />
	    			    		
	    			    		<input onclick="location.href='<?php echo U('Search/key_search', '', FALSE); ?>/key/'+$('#key').val();" type="button" class="btn_search" value="搜索" />
	    			    	</form>
	    			    </div>
	    			    <div class="search_key">
	    			    	<ul>
	    			    		<li>
	    			    			<a href="">太阳镜</a>
	    			    		</li>
	    			    		<li>
	    			    			<a href="">蕉下</a>
	    			    		</li>
	    			    		<li>
	    			    			<a href="">果蔬脆片</a>
	    			    		</li>
	    			    		<li>
	    			    			<a href="">德亚酸牛奶</a>
	    			    		</li>
	    			    		<li>
	    			    			<a href="">蚕丝面膜</a>
	    			    		</li>
	    			    		<li>
	    			    			<a href="">山地车</a>
	    			    		</li>
	    			    		<li>
	    			    			<a href="">BB霜</a>
	    			    		</li>
	    			    		<li>
	    			    			<a href="">乳胶枕</a>
	    			    		</li>
	    			    		<li>
	    			    			<a href="">蝙蝠侠系列石英表</a>
	    			    		</li>
	    			    		<li>
	    			    			<a href="">拍立得</a>
	    			    		</li>
	    			    	</ul>
	    			    </div>
	    		    </div>
	    		    <div class="h_c_right">
	    		    	<a href="<?php echo U('Cart/lst');?>" class="h_c_r_car">
	    		    		<b class="b_car1"></b>
	    		    		<span><i class="ci-count">0</i>我的购物车</span>
	    		    		<b class="b_car2"></b>
	    		    	</a>
	    		    </div>
	    	    </div>
	        </div>
		    <!--菜单-->
		    <div class="full_nav">
		    	<div class="w1200">
		    		<ul class="nav">
		    			<li class="li_all_type">
		    				<a href="">全部分类</a>
		    				<b class="b_down"></b>
		    			</li>
		    			<li class="home">
		    				<a href="/" style="color: #C41F3A;">首页11</a>
		    			</li>
		    			<li>
		    				<a href="<?php echo U('No/brand');?>">精选品牌</a>
		    			</li>
		    			<li>
		    				<a href="<?php echo U('No/go');?>">全球购</a>
		    			</li>
		    			<li>
		    				<a href="<?php echo U('No/refined');?>">推荐</a>
		    			</li>
		    			<li>
		    				<a href="<?php echo U('No/lst');?>">分类</a>
		    			</li>
		    		</ul>
		    	</div>
	        </div>

		</div>









	    <!--头部end-->
	    <!--轮播区域-->
	    <div class="full_big_eye">
	
	        <!--菜单-->
	    	<div class="index_type">
	    		<ul class="index_type_ul">

	    		<?php if(is_array($catlist)): foreach($catlist as $key=>$ca): if($ca['parent_id'] == 0): ?><li>
                        <span><?php echo ($ca['cat_name']); ?><b>></b></span>
                        <div class="nav_type_list" data="1">
                            <ul>
                            	<?php if(is_array($catlist)): foreach($catlist as $key=>$cc): if($cc['parent_id'] == $ca['id']): ?><li><a href="<?php echo U('Search/cat_search?cat_id='.$cc['id'], '', FALSE);?>" target="_blank"><?php echo ($cc['cat_name']); ?></a></li><?php endif; endforeach; endif; ?>
                            </ul>
                        </div>
	    			</li><?php endif; endforeach; endif; ?>	
	    		</ul>
	    	</div>
	        <!--菜单-->
	        <!--轮播图-->
	        <script type="text/javascript">
			$(function(){
				//轮播图效果
				var c = 0;
				//加一个时间事件
				function timer(){
				    //获得序号
				    c++;
				    if(c==6){
				    	c=0;
				    }
//				    alert(c);
				    //让自己显示，兄弟元素隐藏
				    $("#inBaner .big_eye_pic li").eq(c).stop().fadeIn(1800).siblings().fadeOut(800);
				    //改变颜色
				    $("#inBaner .btn ul li").eq(c).stop().addClass("cur").siblings().removeClass("cur");
				}
				time = setInterval(timer,2000);
				//给图片添加一个移入移出效果
				$("#inBaner").hover(function(){
					//停止时间
					clearInterval(time);
				},function(){
					//时间继续
					time = setInterval(timer,2000);
				});
				//给色块添加一个移入移出事件
				$("#inBaner .btn ul li").mouseenter(function(){
					var n = $(this).index();
					//让第一个人图片显示 其余的隐藏
					$("#inBaner .big_eye_pic li").eq(n).stop().show().siblings().hide();
					//改变颜色
					$("#inBaner .btn ul li").eq(n).stop().addClass("cur").siblings().removeClass("cur");
				});
				//添加一个点击事件
				$(".her_top .her_title .her_menu li").click(function(){
					var n = $(this).index();
					//切换颜色
					$(".her_menu li").eq(n).addClass("current").siblings().removeClass("current");
					//切换商品
					$(".her_top .pro_con").eq(n).show().siblings(".pro_con").hide();
				})
				//搜索框下滑
				$(window).scroll(function(){
					//获得滚动条距离顶部距离
					var t = $(document).scrollTop();
					    document.title = t;
					    if(t>530){
					    	$("#nav").show();
					    }else{
					    	$("#nav").hide();
					    }
				});
			});
		</script>
	        <div class="full_eye">
	        	<div id="inBaner">
	        		<ul class="big_eye_pic">
	        			<li style="display: block;">
	        				<a href="" class="img_box">
	        					<img src="/Public/Home/image/web-101-101-1.jpg"/>
	        				</a>
	        			</li>
	        			<li>
	        				<a href="" class="tpl">
	        					<img src="/Public/Home/image/web-101-101-2.jpg"/>
	        				</a>
	        			</li>
	        			<li>
	        				<a href="" class="tpl">
	        					<img src="/Public/Home/image/web-101-101-3.jpg"/>
	        				</a>
	        			</li>
	        			<li>
	        				<a href="" class="tpl">
	        					<img src="/Public/Home/image/web-101-101-4.jpg"/>
	        				</a>
	        			</li>
	        			<li>
	        				<a href="" class="tpl">
	        					<img src="/Public/Home/image/web-101-101-5.jpg"/>
	        				</a>
	        			</li>
	        		</ul>
	        		<div class="btn">
	        		    <ul>
	        		    	<li class="cur"></li>
	        		    	<li></li>
	        		    	<li></li>
	        		    	<li></li>
	        		    	<li></li>
	        		    </ul>
	        		</div>
	        	</div>
	        </div>
	        <!--轮播图-->
	    </div>
	    <!--轮播区域-->
	    <!--商品区-->
	    <div class="w1200">
	    	<div class="her_top">
	    		<div class="her_title">
	    			<ul class="her_menu">
	    				<li class="current">
	    					<i class="today_zb_icon"></i>
	    					精选服饰
	    					<i class="jx_icon_down"></i>
	    				</li>
	    				<li>
	    					<i class="yesto_icon"></i>
	    					新品上市
	    					<i class="jx_icon_down"></i>
	    				</li>
	    			</ul>
	    		</div>
	    	    <div class="pro_con" style="display: block;">
	    	    	<div class="P_left">
	    	    		<div class="groDiv">
	    	    			<div style="position: relative;overflow: hidden;">
	    	    				<ul class="groUlOut">
	    	    				<?php if(is_array($goods4)): foreach($goods4 as $key=>$gss4): ?><li style="float: left;width: 224px;">
	    	    						<div class="x">精选服饰1</div>
	    	    						<a href="<?php echo U('goods',array('id'=>$gss4['id']));?>" class="pro">
	    	    							<img src="/Public/Uploads/<?php echo ($gss4['mid_logo']); ?>"/>
	    	    						</a>
	    	    						<p class="box_glay">
	    	    							<a href="" class="pro_text">
	    	    								<span><?php echo ($gss4['goods_name']); ?></span>
	    	    							</a>
	    	    						</p>
	    	    						<p class="p_num">
	    	    							No.<?php echo ($gss4['id']); ?>
	    	    						</p>
	    	    						<div class="now_price">
	    	    							<div class="price">
	    	    								<span class="bigfont">
	    	    									<span class="f_14">￥</span><span><?php echo ($gss4['shop_price']); ?></span>
	    	    								</span>
	    	    								<span><del>￥<?php echo ($gss4['market_price']); ?></del></span>
	    	    								<div class="zk"><?php echo sprintf('%.1f',$gss4['shop_price']/($gss4['market_price'])*10)?>折</div>
	    	    							</div>
	    	    						</div>
	    	    					</li><?php endforeach; endif; ?>
	    	    				</ul>
	    	    			</div>
	    	    		</div>
	    	    	</div>
	    	    </div>
	    	    <div class="pro_con" style="display: none;">
	    	    	<div class="P_left">
	    	    		<div class="groDiv">
	    	    			<div style="position: relative;overflow: hidden;">
	    	    				<ul class="groUlOut">
	    	    				<?php if(is_array($goods2)): foreach($goods2 as $key=>$gss2): ?><li style="float: left;width: 224px;">
	    	    						<div class="s">新品上市</div>
	    	    						<a href="<?php echo U('goods',array('id'=>$gss2['id']));?>" class="pro">
	    	    							
	    	    							<img src="/Public/Uploads/<?php echo ($gss2['mid_logo']); ?>"/>
	    	    						</a>
	    	    						<p class="box_glay">
	    	    							<a href="" class="pro_text">
	    	    								<span><?php echo ($gss2['goods_name']); ?></span>
	    	    							</a>
	    	    						</p>
	    	    						<p class="p_num">
	    	    							No.<?php echo ($gss2['id']); ?>
	    	    						</p>
	    	    						<div class="now_price">
	    	    							<div class="price">
	    	    								<span class="bigfont">
	    	    									<span class="f_14">￥</span><span><?php echo ($gss2['shop_price']); ?></span>
	    	    								</span>
	    	    								<span><del>￥<?php echo ($gss2['market_price']); ?></del></span>
	    	    								<div class="zk"><?php echo sprintf('%.1f',$gss4['shop_price']/($gss4['market_price'])*10)?>折</div>
	    	    							</div>
	    	    						</div>
	    	    					</li><?php endforeach; endif; ?>
	    	    					
	    	    				</ul>
	    	    			</div>
	    	    		</div>
	    	    	</div>
	    	    </div>
	    	</div>
	        <!--第二区-->
	        <div class="ver_box">
                <ul class="qinha_ul ClearFix"></ul>
	        </div>
	        <div class="qinha_box">
	        	<div class="qinha_title">
	        		<div class="v_h2">
	        			<p class="h2_top">限时抢购</p>
	        			<p class="h2_bottom">天天特价 早10点强势上新 </p>
	        		</div>
	        	</div>
	        	<div class="qinha_cons">
	        	    <ul class="qinha_ul">

	        	    <?php if(is_array($goods1)): foreach($goods1 as $key=>$gss1): ?><li style="margin-right: 0;">
	        	    		<div class="djs_time">
	        	    			还剩<span>10:50:22</span>
	        	    		</div>
	        	    		<a href="<?php echo U('goods',array('id'=>$gss1['id']));?>"><img src="/Public/Uploads/<?php echo ($gss1['big_logo']); ?>" style="width: 595px;height: 317px;"/></a>
	        	    	</li><?php endforeach; endif; ?>
	        	  
	        	    </ul>
	        	</div>
	        </div>
	        <!--第二区-->
	        <!--第三区-->
	        <div class="jinpin_box">
	        	<div class="qinha_title">
	        		<div class="v_h2">
                        <p class="h2_top">热卖精选</p>
                        <p class="h2_bottom">品类齐全 轻松购物</p>
                    </div>
	        	</div>
	        	<ul class="jinpin_ul">
	        	  <?php if(is_array($goods3)): foreach($goods3 as $key=>$gss3): ?><li>
	        			<a href="<?php echo U('goods',array('id'=>$gss3['id']));?>"><img src="/Public/Uploads/<?php echo ($gss3['big_logo']); ?>" /></a>
	        			<a href="<?php echo U('goods',array('id'=>$gss3['id']));?>" target="_blank" class="ppsx_tc">
                            <div class="ppsx_tc_xx">
                                <div class="ppsx_tc_xx1">
                                    <div class="ppsx_xx_zk"><span><?php echo ($gss3['shop_price']); ?></span>元起</div>
                                    <div class="ppsx_xx_qg">立即抢购</div>
                                </div>
                            </div>
                        </a>
	        		</li><?php endforeach; endif; ?>
	        	</ul>
	        </div>
	        <!--第三区-->

	        <!--第三区-->
	        <?php if(!empty($goods_his)){ ?>
	        <div class="jinpin_box">
	        	<div class="qinha_title">
	        		<div class="v_h2">
                        <p class="h2_top">历史浏览</p>
                        <p class="h2_bottom">曾经的不懂事</p>
                    </div>
	        	</div>
	        	<ul class="jinpin_ul">
	        	  <?php if(is_array($goods_his)): foreach($goods_his as $key=>$hiss): ?><li>
	        			<a href="<?php echo U('goods',array('id'=>$hiss['id']));?>"><img src="/Public/Uploads/<?php echo ($hiss['big_logo']); ?>" /></a>
	        			<a href="<?php echo U('goods',array('id'=>$hiss['id']));?>" target="_blank" class="ppsx_tc">
                            <div class="ppsx_tc_xx">
                                <div class="ppsx_tc_xx1">
                                    <div class="ppsx_xx_zk"><span><?php echo ($hiss['shop_price']); ?></span>元起</div>
                                    <div class="ppsx_xx_qg">立即抢购</div>
                                </div>
                            </div>
                        </a>
	        		</li><?php endforeach; endif; ?>
	        	</ul>
	        </div>
	        <?php }?>
	        <!--第三区-->
	        <!--第四区-->
	        <div class="day_box">
	        	<div class="qinha_title">
	        		<div class="v_h2">
	        			<p class="h2_top">今日发现</p>
                        <p class="h2_bottom">精致好物 更快乐的生活</p>
	        		</div>
	        	</div>
	        	<ul class="day_goods">
	        		

	        		<?php if(is_array($goods5)): foreach($goods5 as $key=>$gss5): ?><li>
	        			<a href="<?php echo U('goods',array('id'=>$gss5['id']));?>" class="a_con_list">
	        				<p class="p_img"><img src="/Public/Uploads/<?php echo ($gss5['mid_logo']); ?>"/></p>
	        			</a>
	        			<p class="p_title">
	        				<span>【<?php echo sprintf("%.1f",($gss5['shop_price']/$gss5['market_price'])*10); ?>折】</span><?php echo ($gss5['goods_name']); ?>
	        			</p>
	        			<p class="p_p">
	        				<span class="price1">￥<span><?php echo ($gss5['shop_price']); ?></span></span>
	        				<span class="price2"><del>￥<?php echo ($gss5['market_price']); ?></del></span>
	        				<a href="<?php echo U('goods',array('id'=>$gss5['id']));?>" class="gwc"></a>
	        			</p>
	        		</li><?php endforeach; endif; ?>>
	        	</ul>
	        </div>
	        <!--第四区-->
	    </div>
	    <!--商品区-->
	    <!--下拉搜索-->
	    <div id="nav" class="search_fixed">
	    	<div class="w1200">
	    		<div class="s_fixed_l"><img src="/Public/Home/image/search_logo.png"/></div>
	    		<div class="s_fixed_r">
	    			<form action="" method="post">
                        <input placeholder="lumi 胶原蛋白" autocomplete="off" class="txt_f_sb" name="keyword" type="text">
                        <input value="搜索" class="f_btn_search" style="cursor:pointer" type="button">
	    			</form>
	    		</div>
	    	</div>
	    </div>
	    <!--下拉搜索end-->
	     <!--左侧导航-->
	    <div class="fixed_dh">
	    	<div class="f_r_top">
	    		<div class="top_i">
	    		    <i class="icon_user"></i>
	    		    <span>账号</span>
	    		</div>
	    		<div class="f_line">
	    			<p class="f_line1"></p>
	    			<p class="f_line2"></p>
	    		</div>
	    		<div class="f_gwc">
	    			<a href="">
	    				<i class="icon_car"></i>
	    			    <span>购物车</span>
	    			    <b class="car_num">0</b>
	    			</a>
	    		</div>
	    		<div class="f_line">
	    			<p class="f_line1"></p>
	    			<p class="f_line2"></p>
	    		</div>
	    		<div class="top_i">
	    		    <i class="icon_collect"></i>
	    		    <span>收藏</span>
	    		</div>

	    	</div>
	        <div class="f_bottom">
	        	<div class="f_sao">
	        		<div class="sao">
	        		<i class="ewm_img"></i>
	        		<div class="ewm_tc">
                    <div class="ewm_tc_bg">
                        <div class="down_app_icon"></div>
                        <img src="/Public/Home/image/down_app_ewm.png">
                    </div>
	        		</div>
	        	</div>
	        	<div class="f_ke">
	        		<i class="online_cus"></i>
	        	</div>
	        	<div class="top_is">
	    		    <a href="javascipt:;">
	    		    	<i class="retrun_top"></i>
	    		    </a>
	    		</div>
	        </div>
	    </div>
	    </div>
	    <!--左侧导航-->
	    



<!--底部公用-->
	    <div class="footer">
	    	<div class="footer_b w1200"><img src="/Public/Home/image/foot_img1.jpg"/></div>
	    	<div class="footer_help w1200">
	    		<div class="footer1_l">
	    			<dl class="helpDl">
	    				<dt><h5>使用帮助</h5></dt>
	    				<dd><a href="">税费收取规则 </a></dd>
	    				<dd><a href="">新手指南 </a></dd>
	    			    <dd><a href="">常见问题 </a></dd>
	    				<dd><a href="">用户协议 </a></dd>
	    			</dl>
	    			<dl class="helpDl">
	    				<dt><h5>会员服务</h5></dt>
	    				<dd><a href="">积分政策  </a></dd>
	    				<dd><a href="">会员权益  </a></dd>
	    			    <dd><a href="">会员等级  </a></dd>
	    			</dl>
	    			<dl class="helpDl">
	    				<dt><h5>支付方式</h5></dt>
	    				<dd><a href="">积分支付  </a></dd>
	    				<dd><a href="">货到付款  </a></dd>
	    			    <dd><a href="">在线支付  </a></dd>
	    				<dd><a href="">优惠券支付  </a></dd>
	    			</dl>
	    			<dl class="helpDl">
	    				<dt><h5>配送方式</h5></dt>
	    				<dd><a href="">包邮政策   </a></dd>
	    				<dd><a href="">费用说明   </a></dd>
	    			    <dd><a href="">配送说明   </a></dd>
	    			</dl>
	    			<dl class="helpDl">
	    				<dt><h5>售后服务</h5></dt>
	    				<dd><a href="">电子发票   </a></dd>
	    				<dd><a href="">售后咨询   </a></dd>
	    			    <dd><a href="">退货办理   </a></dd>
	    				<dd><a href="">退货政策   </a></dd>
	    			</dl>
	    		</div>
	    		<div class="footer1_r">
	    			<ul>
	    				<li>
	    					<h2>手机快乐购</h2>
	    					<img src="/Public/Home/image/footer_ewm_01.png"/>
	    					<p>下载移动客户端</p>
	    				</li>
	    				<li>
	    					<h2>快乐购微信</h2>
	    					<img src="/Public/Home/image/footer_ewm_02.png"/>
                            <p>快乐购官方微信</p>
	    				</li>
	    			</ul>
	    		</div>
	    	</div>
	        <div class="footer_nav">
	        	<div class="w720">
	        		<ul>
	        			<li>
	        				<a href="">关于快乐购 </a>
	        				<span class="line"></span>
	        			</li>
	        			<li>
	        				<a href="">投资者关系 </a>
	        				<span class="line"></span>
	        			</li>
	        			<li>
	        				<a href="">商家入驻  </a>
	        				<span class="line"></span>
	        			</li>
	        			<li>
	        				<a href="">联系我们 </a>
	        				<span class="line"></span>
	        			</li>
	        		</ul>
	        	</div>
	        </div>
	        <div class="footer_bottom">
	        	<div class="w1200">
	        		<p>
	        			<span class="font_arial">Copyright© 2006-2016 happigo. All Rights Reserved </span>
                                           免费服务热线: 400-705-1111 | 固话也可拨打: 800-705-1111
                        <span class="font_arial">E-Mail: service@happigo.com</span><br>
                                           湘ICP备12000157号 信息网络传播视听节目许可证号：1810530
	        		</p>
	        		<p class="footer_b">
	        			<a href="http://www.itrust.org.cn/home/index/itrust_certifi/wm/2782875193.html">
	        				<img src="/Public/Home/image/foot_img3.png"/>
	        			</a>
	        			<a href="https://search.szfw.org/cert/l/CX20150428007576007720">
	        				<img src="/Public/Home/image/foot_img4.png"/>
	        			</a>
	        		</p>
	        	</div>
	        </div>
	    </div>
	    <!--底部end-->

	</body>
</html>